
<?=$this->headTitle('Новости IT');?>
<?php $this->headLink()->appendStylesheet('/twitterbootstrap/css/bootstrap.min.css')?>
<?= $this->headLink() ?>
<script type="text/javascript">

</script>
<h3 align="center" style="font-family: Ubuntu">Новости IT</h3>

<?php if(count($this->item)):?>
    <?php foreach($this->item as $i):?>
    <article>
        <div class="top">
            <a href="<?=$this->url(array('id'=>$i['article_id']),'catalog-display');?>"><img src="images/articles/<?=$this->escape($i['img']);?>"/></a>
        </div>
        <div class="text">
            <div class="pub">
                <img src="images/calendar-plus.png" style="vertical-align: middle;"/><time class="created_time"> <?=$this->escape($i['created_dt']);?></time>
            </div>
            <h4 class="title" style="font-family: Ubuntu"><a href="<?=$this->url(array('id'=>$i['article_id']),'catalog-display');?>"><?=$this->escape($i['title']);?></a></h4>
            <div class="description"><?=$i['description'];?></div>
        </div>
        <footer>
            <img src="images/user.png" title="автор статьи" style="vertical-align: middle"/><span class="author" title="автор статьи"><?=$this->escape($i['author']);?></span>
            <img src="images/eye.png" title="Число просмотров" style="vertical-align: middle"/><span class="views" title="Число просмотров"><?=$this->escape($i['views']);?></span>
            <img src="images/comments.png" title="Комментариев" style="vertical-align: middle"/><span class="comments" data-id="<?=$this->escape($i['article_id'])?>" title="Комментариев"><?=$this->escape($i['comments']) ==false ? '0' :$this->escape($i['comments']);?></span>
        </footer>
   </article>
    <?php endforeach;?>

<div class="pagination">
    <ul>
        <li style="font-size:12px;">
        <?=$this->pages;?>
        </li>
    </ul>
</div>

<?php else: ?>
<p>Записей не обнаружено.</p>
<?php endif;?>